delete from dbo.stdtabelasvar where tabela = 'TDU_ListaLayout';
delete from dbo.stdcamposvar where tabela = 'TDU_ListaLayout';
insert into dbo.stdtabelasvar values('TDU_ListaLayout', 'ERP');
insert into dbo.stdcamposvar (tabela, campo, descricao, texto, visivel, ordem) values('TDU_ListaLayout', 'CDU_Lista', 'Lista', 'Lista', 1, 1);
insert into dbo.stdcamposvar (tabela, campo, descricao, texto, visivel, ordem) values('TDU_ListaLayout', 'CDU_Nome', 'Nome', 'Nome', 1, 2);
insert into dbo.stdcamposvar (tabela, campo, descricao, texto, visivel, ordem) values('TDU_ListaLayout', 'CDU_XmlLayout', 'XmlLayout', 'XmlLayout', 1, 3);
go

CREATE TABLE [dbo].[TDU_ListaLayout](
	CDU_Lista [varchar](100) NOT NULL,
	CDU_Nome [varchar](50) NOT NULL,
	CDU_XmlLayout [varchar](max) NOT NULL,
CONSTRAINT [PK_TDU_ListaLayout] PRIMARY KEY CLUSTERED 
(
	[CDU_Lista] ASC,
	[CDU_Nome] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO